using System;
using JoyfulHomeJourney.BackEnd.Infrastructure.EFCore;
using JoyfulHomeJourney.BackEnd.Infrastructure.Dtos.Requests.Objects;
namespace JoyfulHomeJourney.BackEnd.Server.Instances.Extends.Requests
{
	public static class EntityOfflineShoppingCarsCreateExtend
{
		public static OfflineShoppingCars ToCreateEntity(this RequestOfflineShoppingCarsDto dto)
		{
			return new OfflineShoppingCars
			{
				ScCarShopId = dto.carShopId,
				ScProductId = dto.productId,
				ScCount = dto.count,
			};
		}
	}
}
